package com.ssm.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Accessors(chain = true)
public class Score implements Serializable {
    private int id;
    private String name;
    private String book;
    private int score;

    public Score() {
    }

    public Score(int id, String name, String book, int score) {
        this.id = id;
        this.name = name;
        this.book = book;
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", book='" + book + '\'' +
                ", score=" + score +
                '}';
    }
}
